<?php
class Application_Form_Login extends Zend_Form
{
	public function init()
	{
		$this->setMethod('post');
		$this->setAttrib('class','form');
        $this->addElement(
            'text', 'login', array(
                'label' => 'Nom d\'utilisateur :',
                'required' => true,
            ));
 
        $this->addElement('password', 'passwd', array(
            'label' => 'Mot de passe :',
            'required' => true,
            ));
 
        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Login',
            ));
		
		/*$login = new Zend_Form_Element_Text('login');
		$login->setRequired(true);
		$login->setLabel('Nom d\'utilisateur :');
		$login->setDecorators(array('ViewHelper'));
		
		$passwd = new Zend_Form_Element_Password('passwd');
		$passwd->setDecorators(array('ViewHelper'));
		$passwd->setRequired(true);
		
		$submit = new Zend_Form_Element_Submit('submit');
		
		$this->addElements(array($login, $passwd, $submit));
		
		$this->setDecorators ( array (array ('ViewScript', array ('viewScript' => 'forms/login.phtml',
																  'class' => 'form') ) ) ); */
	}
}